<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html> 
<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
    <title>easycms</title>
    <link rel="stylesheet" href="{base_url}/statics/easycms.css" type="text/css" />
    <link rel="stylesheet" href="{base_url}/statics/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="{base_url}/statics/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <script type="text/javascript" src="{base_url}/statics/easycms.js"></script>
</head>
<body>
<div class="grid">
    <p class="grid_top">文章</p>
    {blogs}
        <div class="blue block">
        <div><a href="{base_url}/index.php/admin/edit_blog/{id}" class="edit"></a><a class="delete" href="/index.php/admin/delete_widget/{widget}"></a><div class="clean"></div></div>
        <p class="title">{title}<span style="font-size:14px;">--{widget}</span></p>
        <div style="overflow:hidden;max-height:86px;margin-top:10px;">
        <p class="content">{content}</p>
        </div>
        </div>
    {/blogs}
    <div style="height:48px">
        <a href="{base_url}/index.php/admin/add_blog" class="add"> </a>
    </div>
</div>
<div class="grid">
    <p class="grid_top">文字</p>
    {texts}
        <div class="orange block">
        <div><a href="{base_url}/index.php/admin/edit_text/{id}" class="edit"></a><a class="delete" href="/index.php/admin/delete_widget/{widget}"></a><div class="clean"></div></div>
        <p class="title"><span style="font-size:14px;">{widget}</span></p>
        <div style="overflow:hidden;max-height:86px;margin-top:10px;">
        <p class="content">{textvalue}</p>
        </div>
        </div>
    {/texts}
    <div style="height:48px">
        <a href="{base_url}/index.php/admin/add_text" class="add"> </a>
    </div>
</div>
<div class="grid">
    <p class="grid_top">链接</p>
    {textlinks}
        <div class="green block">
        <div><a href="{base_url}/index.php/admin/edit_textlink/{id}" class="edit"></a><a class="delete" href="/index.php/admin/delete_widget/{widget}"></a><div class="clean"></div></div>
        <p class="title"><a href="{url}" title="{title}">{textvalue}</a><span style="font-size:14px;">--{widget}</span></p>
        <div style="overflow:hidden;max-height:86px;margin-top:10px;">
        </div>
        </div>
    {/textlinks}
    <div style="height:48px">
        <a href="{base_url}/index.php/admin/add_textlink" class="add" style="display:none;"> </a>
    </div>
</div>
<div class="grid">
    <p class="grid_top">图片</p>
    <div style="height:48px">
        <a href="{base_url}/index.php/admin/add_image" class="add" style="display:none;"> </a>
    </div>
</div>
<div class="grid">
    <p class="grid_top">图片组</p>
    <div style="height:48px">
        <a href="#" class="add" style="display:none;"> </a>
    </div>
</div>
<?php if($error != '') { ?>
<div class="error">
<p>**{error}**</p>
</div>
<script>
$(".error p").fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500).fadeOut(500).fadeIn(500);
</script>
<?php } ?>
<script>
$(document).ready(function(){
    $(".add,.edit").fancybox({
        'padding':'0',
        'showCloseButton':false
    });
});
</script>
</body>
</html>
